<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:h="http://java.sun.com/jsf/html"   
      xmlns:f="http://java.sun.com/jsf/core"  
      xmlns:c="http://java.sun.com/jsp/jstl/core" 
      xmlns:p="http://primefaces.org/ui"
      xml:lang="pt" 
      lang="pt">   
      
	<c:set var="ctx" value="#{facesContext.externalContext.request.contextPath}"/>
	<h:head>
		<title>SGLF - Sistema de Gestão de Locadoras de Filmes</title>
		 
		<link href="${ctx}/common/styles/geral.css"  type="text/css" rel="stylesheet"/>
		<script src="${ctx}/common/scripts/global.js" type="text/javascript"/> 
        <script type="text/javascript" src="${ctx}/common/scripts/jquery.maskMoney.1.3.0.js" />
        <script type="text/javascript" >    

	        jQuery(function(){
	        	jQuery('input[id*=valorProduto]').maskMoney({symbol:'R$ ', showSymbol:true, thousands:'.', decimal:',', symbolStay: true});
	        	jQuery('input[id*=valorOutrasDespesas]').maskMoney({symbol:'R$ ', showSymbol:true, thousands:'.', decimal:',', symbolStay: true});
	        	jQuery('input[id*=valorDesconto]').maskMoney({symbol:'R$ ', showSymbol:true, thousands:'.', decimal:',', symbolStay: true});
	        	jQuery('input[id*=valorServico]').maskMoney({symbol:'R$ ', showSymbol:true, thousands:'.', decimal:',', symbolStay: true});

	        	});
        	
			</script> 
		   
	  	<style type="text/css">  
			.ui-menu .ui-menu-parent .ui-menu-child{  
				width:200px;  
			} 
	  	</style> 
	  	
	</h:head>
	<h:body styleClass="ui-widget-content">     
		<div id="header">  
				<div id="cabecalho">  
					<img src="${ctx}/common/images/logo_SESI.gif" id="logo_sistema_industria" />
				</div> 
				<h:form>
					<p:menubar autoSubmenuDisplay="true"  style=" font-weight: bold;" >
		                 <p:menuitem value="Home" action="home" ajax="false" />  
		                 
				         <p:submenu label="Cadastros" >            
		                 	<p:menuitem value="Mesas" action="mesas" ajax="false" icon="ui-icon ui-icon-document" />     
		                 	<p:menuitem value="Produtos" action="produtos" ajax="false" icon="ui-icon ui-icon-document" />     
		                 	<p:menuitem value="Usuários" action="usuarios" ajax="false" icon="ui-icon ui-icon-document" />     
						 </p:submenu > 
						 
		                 <p:menuitem value="Relatórios" action="relatorio" ajax="false"/>   
		                 <p:menuitem value="Sair" action="#{segurancaBean.sair}" ajax="false"/>   
					</p:menubar>       
				</h:form>   
		</div>
		
	    <div id="content" style="width: 1000px">      
			<ui:insert name="body" />
				<h:form>     
			        <p:themeSwitcher style="width:150px" id="defaultSwitcher">  
			            <f:selectItem itemLabel="Choose Theme" itemValue="" />  
			            <f:selectItems value="#{globalBean.themes}" />  
			        </p:themeSwitcher> 
				</h:form> 
		</div>
		    
    </h:body>
</html>